#include <iostream>
using namespace std;
struct money
{
    int x;
    int y;
} X;
int main()
{
    cin >> X.x >> X.y;
    X.x *= 10;
    X.x = X.x + X.y;
    cout << X.x / 19;
    return 0;
}